package com.hghivln.pojo.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Collection;
import java.util.Map;

/**
 * 排班信息表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SchedulingDto implements Serializable {
    /**
     * 医生ID
     */
    @ApiModelProperty(value = "医生ID")
    private Long userId;

    /**
     * 科室ID
     */
    @ApiModelProperty(value = "科室ID")
    private Long deptId;

    /**
     * 排班时段1上午  2下午 3晚上 字典表数据翻译
     */
    @ApiModelProperty(value = "排班时段1上午  2下午 3晚上 字典表数据翻译")
    private String subsectionType;

    /**
     * 排班类型1 门诊 2 急诊 字典表数据翻译
     */
    @ApiModelProperty(value = "排班类型1 门诊 2 急诊 字典表数据翻译")
    private Collection<String> schedulingType;

    /**
     * 存放星期值班的记录 key 指日期 周一到周日的日期字符串   value 有值就1  2   没有值就""
     */
    @JsonIgnore
    private Map<String, String> record;

    public SchedulingDto(Long userId, Long deptId, String subsectionType, Map<String, String> record) {
        this.userId = userId;
        this.deptId = deptId;
        this.subsectionType = subsectionType;
        this.record = record;
    }
}